import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
// 引入全局样式表
import './assets/style/public.scss';
import 'default-passive-events';

// Element Plus
import 'element-plus/lib/theme-chalk/index.css';
import { components, plugins } from './plugins/element-plus';

const app = createApp(App);

// 按需导入Element Plus组件和插件
components.forEach(component => {
  app.component(component.name, component)
});

plugins.forEach(plugin => {
  app.use(plugin)
});

app.use(store).use(router).mount('#app');